package com.sm.dao;

import com.sm.model.Dynamic;
import com.sm.model.LikeDynamic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LikeDynamicMapper {

    int insertLikeDynamic(LikeDynamic likeDynamic);

    void deleteComment(@Param("dynamicId") Integer dynamicId);

    List<LikeDynamic> selectLikeDynamicById(@Param("dynamicId") Integer dynamicId);

  //  LikeDynamic selectLikeDynamicByUserId(@Param("dynamicUser") Integer dynamicUser);

    List<LikeDynamic> isExist(@Param("dynamicId")Integer dynamicId,@Param("userId")Integer userId);

    List<LikeDynamic> selectLikeUserIds(@Param("dynamicId") Integer dynamicId);

    int deleteOne(@Param("dynamicId")Integer dynamicId,@Param("userId")Integer userId);
}
